from myapp.models import *
# 导入序列化包
from rest_framework import serializers


class TypeSer(serializers.ModelSerializer):

    class Meta:
        model = Type
        fields = '__all__'


class TestSer(serializers.ModelSerializer):

    class Meta:
        model = Test
        fields = '__all__'
        depth = 1